﻿@model IEnumerable<Pr0ject0.Models.EducationModel>

<fieldset>
    <legend>Educational Background</legend>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.major)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.startYear)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.endYear)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.isGraduate)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.major)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.startYear)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.endYear)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.isGraduate)
        </td>
    </tr>
}

</table>
</fieldset>